<template>
  <div class="page-container">
    <common-product v-if="productType === 1" />
    <scenic-product v-if="productType === 0" />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
// 普通店铺创建产品和票务店铺创建产品
import commonProduct from './common/index.vue'
import scenicProduct from './scenic/index.vue'
export default {
  name: 'Product',
  components: {
    commonProduct,
    scenicProduct
  },
  data() {
    return {
      productType: 1
    }
  },

  computed: {
    ...mapGetters([
      'currentEnterprise',
      'currentSite'
    ])
  },

  created() {
    this.productType = this.currentSite.productType
  },

  methods: {

  }
}
</script>

<style lang="scss" scoped>
</style>
